import * as request from '../../utils/request';
import config from '../../config/config';

export function getCorrelateList(params) {
  return request.get(`${config.limit_api.getCorrelateList}`, params);
}

export function getUnitNodeTree(params) {
  return request.get(`${config.limit_api.getUnitNodeTree}`, params);
}

export function getCorrelatePage(params) {
  return request.get(`${config.limit_api.getCorrelatePage}`, params);
}

export function addCorrelate(params) {
  return request.post(`${config.limit_api.addCorrelate}`, params);
}

export function deleteCorrelate(params) {
  return request.post(`${config.limit_api.deleteCorrelate}`, params);
}

export function getCorrelateTeanatAndAppByUser(params) {
  return request.get(`${config.limit_api.getCorrelateTeanatAndAppByUser}`, params);
}

export function getAppRoleTree(params) {
  return request.get(`${config.limit_api.getAppRoleTree}`, params);
}
